public class Example12_1 { 
   public  static void main(String args[]) {
       SpeakElephant  speakElephant;
       SpeakCar  speakCar;  
       speakElephant = new SpeakElephant() ;
       speakCar = new SpeakCar();
       speakElephant.start();
       speakCar.start();
       for(int i=1;i<=15;i++) {
          System.out.print("����"+i+"  ");
       }  
   }
}
 class SpeakCar extends Thread {
    public void run() {
        for(int i=1;i<=20;i++) {
            System.out.print("�γ�"+i+"  ");
        }
    }
}
 class SpeakElephant extends Thread {
    public void run() {
        for(int i=1;i<=20;i++) {
            System.out.print("����"+i+"  ");
        }
    }
}
